﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace XLZF.MicroServices.Models;

/// <summary>
/// 衣物品牌
/// </summary>
public class Clothing_Brand : ModelBase
{
    /// <summary>
    /// 品牌ID
    /// </summary>
    [Key]
    public string BrandID { get; set; }

    /// <summary>
    /// 品牌名称
    /// </summary>
    [MaxLength(100)]
    public string BrandNAME { get; set; }

}

/// <summary>
/// 衣物种类
/// </summary>
public class Clothing_Parts : ModelBase
{
    /// <summary>
    /// 种类ID
    /// </summary>
    [Key]
    public string PartsID { get; set; }

    /// <summary>
    /// 种类名称
    /// </summary>
    [MaxLength(100)]
    public string PartName { get; set; }

    /// <summary>
    /// 导航属性
    /// </summary>
    //public IList<Clothing_Size> PartsSizeList { get; set; } = new List<Clothing_Size>();
}

/// <summary>
/// 衣物大小
/// </summary>
public class Clothing_Size : ModelBase
{
    /// <summary>
    /// SizeID
    /// </summary>
    [Key]
    public string SizeID { get; set; }

    /// <summary>
    /// SizeName
    /// </summary>
    [MaxLength(100)]
    public string SizeName { get; set; }

    /// <summary>
    /// 类型外键
    /// </summary>
    [ForeignKey("PartsID")]
    public Clothing_Parts _Parts { get; set; }

    public string? PartsID { get; set; }
}

/// <summary>
/// 衣物材质
/// </summary>
public class Clothing_Material : ModelBase
{
    /// <summary>
    /// 材质ID
    /// </summary>
    [Key]
    public string MaterialID { get; set; }

    /// <summary>
    /// 材质名称
    /// </summary>
    [MaxLength(100)]
    public string MaterialName { get; set; }
}

/// <summary>
/// 衣物来源
/// </summary>
public class Clothing_Source : ModelBase
{
    /// <summary>
    /// 来源ID
    /// </summary>
    [Key]
    public string SourceID { get; set; }

    /// <summary>
    /// 来源名称
    /// </summary>
    [MaxLength(100)]
    public string SourceName { get; set; }
}

/// <summary>
/// 穿搭季节
/// </summary>
public class Clothing_Season : ModelBase
{
    /// <summary>
    /// 季节ID
    /// </summary>
    [Key]
    public string SeasonID { get; set; }

    /// <summary>
    /// 季节名称
    /// </summary>
    [MaxLength(100)]
    public string SeasonName { get; set; }
}

/// <summary>
/// 穿搭角色
/// </summary>
public class Clothing_Role : ModelBase
{
    /// <summary>
    /// 角色ID
    /// </summary>
    [Key]
    public string RoleID { get; set; }

    /// <summary>
    /// 角色名称
    /// </summary>
    [MaxLength(100)]
    public string RoleName { get; set; }
}